From c83cdd2cfb05c9b094f6b1c2ce7cd7c8b7e8d72b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 21 Sep 2018 17:52:42 +0100 Subject: [PATCH] wip --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index f69f31d772..025c756db4 100755 --- a/debian/rules +++ b/debian/rules @@ -24,6 +24,14 @@ SHELL := bash -e upstream_version := \ $(shell dpkg-parsechangelog -SVersion | sed 's/\(\.[0-9]*\)\..*/\1/' ) +# We take all files named debian/*.vsn-in +# and do these three things to them: +# 1. substitute @version@ in the file contents with the version +# number (the one from $(upstream_version)) +# 2. replace any V in the file *name* with that same version +# 3. strip .vsn-in from the end +# The resulting files are mainly consumed by dh. + TEMPLATE_FILES := $(wildcard debian/*.vsn-in) define template_rule_template = -- 2.30.2